_init: function() {
this._overviewCreated = false;
this._initCalled = false;
+ this._controlPressed = false;
+ global.stage.connect('captured-event', Lang.bind(this, this._capturedEvent));
Main.sessionMode.connect('updated', Lang.bind(this, this._sessionUpdated));
this._sessionUpdated();
},
}
},
+ _capturedEvent: function(actor, event) {
+ let type = event.type();
+ if (type != Clutter.EventType.KEY_PRESS &&
+ type != Clutter.EventType.KEY_RELEASE)
+ return false;
+
+ let symbol = event.get_key_symbol();
+ if (symbol == Clutter.KEY_Control_L ||
+ symbol == Clutter.KEY_Control_R)
+ this._controlPressed = type == Clutter.EventType.KEY_PRESS;
+
+ return false;
+ },
+
_sessionUpdated: function() {
this.isDummy = !Main.sessionMode.hasOverview;
this._createOverview();
if (!this._shown)
return;
+ if (this._controlPressed)
+ return;
+
if (!this._shownTemporarily)
this._animateNotVisible();